package com.job.yangshida.homework11and12.homework0712;

/**
 * @author 杨士达
 * @version 1.0
 * @since 2022-07-14 12:02:43
 */
public class Taige {
    private String name;
    private Attack attack;
    public void hit(){
        attack.attack();
    }
    public Taige() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Attack getAttack() {
        return attack;
    }

    public void setAttack(Attack attack) {
        this.attack = attack;
    }
}
